package com.qixin.api.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 消息通知
 * </p>
 *
 * @author 闫亚茹
 * @since 2018-09-29
 */
@TableName("message")
public class Message extends Model<Message> {

    private static final long serialVersionUID = 1L;

	private Long id;
	/**
	 * 消息
	 */
	private String news;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Long createTime;
    /**
     * 发消息用户的账户
     */
	private String username;
    /**
     * 发消息人的账户
     */
	@TableField("role_name")
	private String roleName;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNews() {
		return news;
	}

	public void setNews(String news) {
		this.news = news;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Message{" +
				"id=" + id +
				", news='" + news + '\'' +
				", createTime=" + createTime +
				", username='" + username + '\'' +
				", roleName='" + roleName + '\'' +
				'}';
	}
}
